package com.cp.service.impl;

import com.cp.dao.WordFrqMiMapper;
import com.cp.repository.WordFrqMi;
import com.cp.service.WordFrqMiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WordFrqMiServiceImpl implements WordFrqMiService {

	@Autowired
	WordFrqMiMapper wordFrqMiMapper;

	@Override
	public List<WordFrqMi> getByConvictionId(Integer convictionId) {
		return wordFrqMiMapper.getByConvictionId(convictionId);
	}

	@Override
	public List<WordFrqMi> getByConvictionIdAndClassRelationId(Integer convictionId, Integer classRelationId) {
		return wordFrqMiMapper.getByConvictionIdAndClassRelationId(convictionId, classRelationId);
	}
}
